package com.zhangke.demo;

import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.ConfigService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @author ：zhangke
 * @date ：Created in 2022/1/29 17:19
 * @description：
 */
public class SpringDemoTest {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:test.xml");
        User user =(User) applicationContext.getBean("user");
        System.out.println( user.toString());
        System.in.read();

        Config appConfig = ConfigService.getAppConfig();
    }
}
